﻿<UserControl x:Class="TextFileReaderModule.Views.GotoLineNumberDialogView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Width="400">
    <Grid>
        <StackPanel>
            <TextBlock FontSize="24" Foreground="DarkBlue" Margin="10">Goto line number ...</TextBlock>

            <TextBlock Margin="10" TextWrapping="Wrap">
                Please enter the line number you want to see 
                and press the <Bold>Accept</Bold> button.
                Or press the <Bold>Cancel</Bold> button to abort this dialog.
            </TextBlock>

            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                
                <Grid Grid.Row="0" Grid.ColumnSpan="2">
                    
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    
                    <Label   Grid.Row="0" Grid.Column="0" Margin="10">Enter line number:</Label>
                    <TextBox Grid.Row="0" Grid.Column="1" Margin="10" Text="{Binding LineNumber, Mode=TwoWay}" />
                </Grid>
                
                <Button Grid.Row="1" Grid.Column="0" Margin="10" Command="{Binding AcceptDialogCommand}">Accept</Button>
                <Button Grid.Row="1" Grid.Column="1" Margin="10" Command="{Binding CancelDialogCommand}">Cancel</Button>
            
            </Grid>
            
        </StackPanel>
    </Grid>
</UserControl>
